<template>
	<div>
		<p class="pclass">搜索记录</p>
		<ul v-for="(items,index) in sortRecordz" :key="index+''" @click="clickrecord(index)">
			<li class="liclass">{{items}}</li>
		</ul>
	</div>
</template>

<script>
	export default{
		props:{
			sortRecordz:{
				    type:Array,
				  default:[]
			}
		},
		methods:{
			clickrecord(index){
				console.log(index)
				console.log(index)
				this.$router.push({
				  name: "SearchList",
				  query:{
					  search:this.sortRecordz[index]
				  }
				});
			}
		}
	}
</script>

<style>
</style>
